using System;
using CStock;
using CUtil;
using System.Diagnostics;
using System.ComponentModel;

namespace CStock
{
	
	//[System.Xml.Serialization.XmlRootAttribute("TradeCondition", Namespace="", IsNullable=false)]
	public class Deposit  : StockObjectBase, IDeposit 
    {
        protected DateTime dateContract;
        protected DateTime dateExpire;
        protected DateTime dateBuy;
        protected double valueBuy;
        protected double valueCurrent;
        protected double cumulatedInterest;
        protected double interestRateInitial;
        protected double interestRateCurrent;

        protected string ownerID;
        protected int number;
        #region IDeposit Members


        DateTime IDeposit.DateContract
        {
            get
            {
                return dateContract;
            }
            set
            {
                dateContract = value;
            }
        }
        DateTime IDeposit.DateBuy
        {
            get
            {
                return this.dateBuy;
            }
            set
            {
                dateBuy = value;
            }
        }
        int IDeposit.Number
        {
            get
            {
                return number;
            }
            set
            {
                number = value;
            }
        }

        string IDeposit.OwnerID
        {
            get
            {
                return this.ownerID;
            }
            set
            {
                ownerID = value;
            }
        }


        DateTime IDeposit.DateExpire
        {
            get
            {
                return dateExpire;
            }
            set
            {
                dateExpire = value;
            }
        }

        double IDeposit.ValueBuy
        {
            get
            {
                return valueBuy;
            }
            set
            {
                valueBuy = value;
            }
        }

        double IDeposit.Value_Current
        {
            get
            {
                return valueCurrent;
            }
            set
            {
                valueCurrent = value;
            }
        }

        double IDeposit.CumulatedInterest
        {
            get
            {
                return cumulatedInterest;
            }
            set
            {
                cumulatedInterest = value;
            }
        }

        double IDeposit.InterestRateInitial
        {
            get
            {
                return interestRateInitial;
            }
            set
            {
                interestRateInitial = value;
            }
        }

        double IDeposit.InterestRateCurrent
        {
            get
            {
                return interestRateCurrent;
            }
            set
            {
                interestRateCurrent = value;
            }
        }
        public override object Clone()
        {
            return this.MemberwiseClone();

        }
        #endregion
    }
}
